<?php /* Smarty version Smarty-3.1.14, created on 2013-07-26 09:20:37
         compiled from ".\templates\myDoc.tpl" */ ?>
<?php /*%%SmartyHeaderCode:2636451f1dd97cad6d8-09094150%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '411ac5e5b52b67c57dbbd38c54500e96606d5d60' => 
    array (
      0 => '.\\templates\\myDoc.tpl',
      1 => 1374810636,
      2 => 'file',
    ),
    'e5c25ecb0f875a98a3e481fa57260440878aa355' => 
    array (
      0 => 'D:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\stallion\\admin\\templates\\main.tpl',
      1 => 1374671331,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '2636451f1dd97cad6d8-09094150',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.14',
  'unifunc' => 'content_51f1dd97d676c3_90293255',
  'variables' => 
  array (
    's_activIdsAdmin' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_51f1dd97d676c3_90293255')) {function content_51f1dd97d676c3_90293255($_smarty_tpl) {?><?php if (!is_callable('smarty_function_html_options')) include 'D:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\stallion\\admin\\include\\smarty\\libs\\plugins\\function.html_options.php';
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Stallion Enterprise</title>
<link href="css/custom.css" rel="stylesheet" type="text/css" />

<script src="./js/jquery.min.js">
</script>
<script type="text/javascript">
function setContract()
{
	var dataString = "userId=" + $("#userId").val();
  $.ajax({
	  type: "GET",
	  url: "getDocumentData.php",
	  data: dataString,
	  success:function(data){
	    $("#contractId").html(data);  	
	  }
});
}
function setInvoce()
{
	var dataString = "userId=" + $("#userId").val() + "&contractId=" + $("#contractId").val();
  $.ajax({
    type: "GET",
    url: "getContractDetail.php",
    data: dataString,
    success:function(data){
      $(".setInvoiceNo").html(data); 
      
      ////////////////// 	
      /*var dataString = "userId=" + $("#userId").val() + "&contractId=" + $("#contractId").val() + "&invoiceId=" + $("#invoiceId").val();
      
      $.ajax({
	      type: "GET",
	      url: "getDocumentData.php",
	      data: dataString,
	      success:function(data){
	        $(".setDocumentData").html(data);  	
	      }
      }); */
      ////////////////// 	
    }
  });
}
</script>

</head>
<body>
<div class="pagesize">
  <div class="header">
    <div class="logo"><img src="images/logo.jpg"  alt=""/></div>
    <div class="menu">
      <ul>
        <li><a href="index.php" class="select">Home</a></li>
        <li><a href="createUser.php">Create User</a></li>
        <li><a href="item.php">Products</a></li>
        <li><a href="list.php">Contact List</a></li>
        <li><a href="userDoc.php">Upload Documents</a></li>
        <li><a href="myDoc.php">User Documents</a></li>
        <?php if ($_smarty_tpl->tpl_vars['s_activIdsAdmin']->value>0){?>
          <li class="last"><a href="logout.php">Logout</a></li>
        <?php }?>
      </ul>
    </div>
  </div>
  <div class="clr"></div>
	<!-- body block start please fill your body contain add this block-->
	  </br></br></br>
	  
<table border="1" align="center" cellpadding="4" cellspacing="0">
<h1 align="center">My Documents</h1>
<tr>
	<td>User Name : </td>
	<td>
		<select id="userId" onchange="setContract();">
			<option value="0">Select</option>
			  <?php echo smarty_function_html_options(array('values'=>$_smarty_tpl->tpl_vars['userArray']->value['userId'],'output'=>$_smarty_tpl->tpl_vars['userArray']->value['fName']),$_smarty_tpl);?>

	  </select>
	<td>Contract No : </td>
	<td>
		<select id="contractId" onchange="setInvoce();">
			<option value="0">Select</option>
			  <?php echo smarty_function_html_options(array('values'=>$_smarty_tpl->tpl_vars['contractArray']->value['contractId'],'output'=>$_smarty_tpl->tpl_vars['contractArray']->value['contractNo']),$_smarty_tpl);?>

	  </select>
  </td>
  <td>Invoice No : </td>
	<td>
		<select id="invoiceId">
			<option value="0">Select</option>
			  <?php echo smarty_function_html_options(array('values'=>$_smarty_tpl->tpl_vars['invoiceArray']->value['invoiceId'],'output'=>$_smarty_tpl->tpl_vars['invoiceArray']->value['invoiceNo']),$_smarty_tpl);?>

	  </select>
  </td>
</tr>	
</table>
<br><br>
<div class="setInvoiceNo"></div>

	<!-- body block end please fill your body contain add this block-->
</div>
<div class="clr"></div>
<div class="bottom">
  <div class="footer">
    <div class="footerline"></div>
    <div class="ftleft">
      <ul>
        <li><a href="index.php" class="first">Home</a></li>
        <li><a href="#">Group of Companies</a></li>
        <li><a href="#">Products</a></li>
        <li><a href="#">About Us</a></li>
        <li><a href="createUser.php">Create User</a></li>
        <li><a href="item.php">Item</a></li>
        <li><a href="list.php">Contact List</a></li>
        <li><a href="userDoc.php">Upload Documents</a></li>
        <li><a href="myDoc.php">User Documents</a></li>
        <?php if ($_smarty_tpl->tpl_vars['s_activIdsAdmin']->value>0){?>
          <li class="last"><a href="logout.php">Logout</a></li>
        <?php }?>
      </ul>
      <div class="copyright">© Copyright 2013 Stallion. All Right Reserved.</div>
    </div>
    <div class="ftright"><img src="images/fb.png" alt="" />&nbsp;<img src="images/tw.png" alt="" />&nbsp;<img src="images/li.png" alt="" />&nbsp;<img src="images/gp.png" alt="" /></div>
  </div>
</div>
</body>
</html>
<?php }} ?>